package com.github.boluo1230.wechat.service.mp;

import com.github.boluo1230.wechat.entity.AutoReplyKeywordsInfo;
import com.github.boluo1230.wechat.entity.BaseReplyInfo;
import com.github.boluo1230.wechat.entity.EventMessage;
import com.github.boluo1230.wechat.entity.MpApp;
import com.github.boluo1230.wechat.entity.vo.MpAutoReplyInfo;

import java.util.List;

/**
 * @author Code Farmer
 * @date 2019/10/16 17:27
 */
public interface AutoReplyService {

    boolean handleAutoReply(EventMessage message, MpApp mpApp);

    MpAutoReplyInfo getMpAutoReplyInfo(String appId);

    List<AutoReplyKeywordsInfo> getAutoReplyKeywordsList(String appId, Integer status);

    long modifyStatus(String appId, String ruleId, Integer status);

    long saveAutoReplyKeywordsInfo(AutoReplyKeywordsInfo autoReplyKeywordsInfo);

    long saveBaseReplyInfo(BaseReplyInfo baseReplyInfo);

    MpAutoReplyInfo getMpAutoReplyInfoOnPage(String appId, int pageNo, int pageSize);

}
